<script src="Libraries/js/js.js"></script>
<?php
	include_once('Models/HocPhan.php');
	include_once('Configs/paging.php');
?>
<form name="capnhatlophp" method="POST">
<table align="center" class="font" width="400px" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class=main_1><img border="0" src="Libraries/images/tbl_left.gif" width="10" height="25" /></td>
    <td align=center class=main_1>Xem Khối Lượng Giảng Dạy </td>
    <td class=main_1><p align="right"><img border="0" src="Libraries/images/tbl_right.gif" width="10" height="25" /></p></td>
  </tr>
  <tr bgcolor="#dae9f3">
    <td class="border_1" colspan="3" valign="top">
        
            <table border="0" align="center"  >
                <tr>
                    <td colspan="4" >&nbsp;</td>
                </tr>
                <tr>
                  <td align="center">&nbsp;</td>
                  <td align="center">Theo năm</td>
                  <td align="center"><input type="radio" name="rdo" /></td>
                  <td align="center">&nbsp;</td>
                </tr>
                <tr>
                  <td align="center" >&nbsp;</td>
                  <td align="center" >Theo học kì</td>
                  <td align="center" ><input type="radio" name="rdo" /></td>
                  <td align="center" >&nbsp;</td>
                </tr>
                <tr>
                    <td align=right><label>Năm học: </label></td>
                    <td>
                        <select name="cbonamhoc">
                            <?php
								$nam = 2000;
								for($i=0;$i<10;$i++){
									$nk=($nam+$i)."-".($nam+$i+1);
                                    echo "<option value='".$nk."'>$nk</option>";
                                }
								echo "<script language=\"javascript\">for(var i=0;i<document.capnhatlophp.cbonienkhoa.length;i++){if(document.capnhatlophp.cbonienkhoa[i].value=='$nienkhoa'){document.capnhatlophp.cbonienkhoa.selectedIndex=i;break;}}</script>";
                                ?>
                        </select>                    </td>
                    <td>Học kì:</td>
                    <td><select name="cbohocki" onchange="showHocPhan(document.capnhatlophp.cbonamhoc.value,this.value);">
                      <option value="1" selected="selected" <?php if ($_POST['cbohocki']==1) echo "selected='selected'"; ?>>Học kì I</option>
                      ;
                            
                      <option value="2" <?php if ($_POST['cbohocki']==2) echo "selected='selected'"; ?>>Học kì II</option>
                      ;
							
                      <option value="3" <?php if ($_POST['cbohocki']==3) echo "selected='selected'"; ?>>Học kì hè</option>
                      ;      
                        
                    </select></td>
                </tr>
				<tr>
          	        <td colspan="4" align=center><label>Cán bộ </label>
                        <select name="cbohp">
                            <?php
								$hp = new HocPhan();
                                $result = $hp->dsTatCaHP();
                                while ($rows=mysql_fetch_array($result)){
                                    echo "<option value='".$rows['mahp']."'";
				
				                    echo ">".$rows['tenhp']."</option>";
                                }
                                echo "<script language=\"javascript\">for(var i=0;i<document.capnhatlophp.cbohp.length;i++){if(document.capnhatlophp.cbohp[i].value=='$mahp'){document.capnhatlophp.cbohp.selectedIndex=i;break;}}</script>";
			
                            ?>
                    </select>                    </td>
                </tr>
                <tr>
           	      <td align=center colspan="4">
				    <input type="submit" name="btnxem" value="Xem" class="button_1"/></td>
                </tr>
            </table>
       
           

    </td>
  </tr>
</table>
<br />
<p>&nbsp;</p>
<table align="center" class="font" width="650" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="main_1"><img border="0" src="Libraries/images/tbl_left.gif" width="10" height="25" /></td>
    <td align="center" class="main_1">Khối Lượng Giảng Dạy </td>
    <td class="main_1"><p align="right"><img border="0" src="Libraries/images/tbl_right.gif" width="10" height="25" /></p></td>
  </tr>
  
  
  
  
    <tr >
    	<td class="border_1" colspan="3" valign="top">
            <table width="650" class="border_1" style="border:none" id="tbmain" cellpadding="0" cellspacing="0">
                <tr>
                    <td align="center" width="30" class="main_3" >Thứ</td>
                    <td align="center" class="main_3" width="60">Mã HP </td>
                    <td align="center" class="main_3" width="50">KH</td>
                    <td align="center" class="main_3" width="300">Tên Học Phần </td>
	                <td align="center" class="main_3" width="80">Tiết học </td>
                    <td align="center" class="main_3" width="50">Phòng</td>
                    <td align="center" class="main_3" width="80">Tuần học </td>
                </tr>
                <tr>
            		<td align="center" class="main_3">&nbsp;</td>
            		<td class="level_1" align="center">&nbsp;</td>
            		<td class="level_1">&nbsp;</td>
                    <td class="level_1">&nbsp;</td>
            		<td width="80" class="level_1">&nbsp;</td>   
            		<td align="center" class="level_1">&nbsp;</td>
                    <td align="center" class="level_1">&nbsp;</td>
                </tr>
                
        </table>        </td>
  </tr>
    
</table>
<br />
<div align="center"><br />
  
    </table>
    <span >
    <input type="submit" name="btninkhoiluonggd" value="In khối lượng GD" class="button_1"/>
    </span>
</div>
</form>
<p><br />
  
 
</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
